package org.example.managere.dto.feibiao;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 电机性能退化监测及寿命预测表数据传输对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AmArchivesDegradationDto {
    private Integer degradationId;
    
    @NotEmpty(message = "电机ID不能为空")
    private String motorId;
    
    @NotNull(message = "测量时间不能为空")
    private Date measurementTime;
    
    @NotNull(message = "效率下降百分比不能为空")
    private BigDecimal efficiencyDegradation;
    
    @NotNull(message = "功率下降值不能为空")
    private BigDecimal powerDegradation;
    
    @NotNull(message = "剩余寿命预测不能为空")
    private BigDecimal remainingLifePrediction;
    
    // 添加额外字段以便前端显示
    private String motorType;
    private String manufacturer;
} 